• The MGLLocationManager protocol defines a set of methods that a class must implement in order to serve as the location manager of an MGLMapView. A location manager is responsible for notifying the map view about location-related events, such as a change in the user’s location. This protocol is similar to the Core Location framework’s CLLocationManager class, but your implementation does not need to be based on CLLocationManager.

    To receive location updates from an object that conforms to the MGLLocationManager protocol, use the optional methods available in the MGLLocationManagerDelegate protocol.

    See more

    Declaration

    Objective-C

    @protocol MGLLocationManager <NSObject>

    Swift

    protocol MGLLocationManager : NSObjectProtocol
  • The MGLLocationManagerDelegate protocol defines a set of methods that respond to location updates from an MGLLocationManager object that is serving as the location manager of an MGLMapView.

    See more

    Declaration

    Objective-C

    @protocol MGLLocationManagerDelegate <NSObject>

    Swift

    protocol MGLLocationManagerDelegate : NSObjectProtocol